#ifndef IO_H
#define IO_H

#include "udef.h"

int is_blockinmem(GLBVAL *, off_t);
int read_fs_block (GLBVAL *, void **, off_t);
int write_fs_block (GLBVAL *, char *, off_t);
int read_inodes_block(GLBVAL *, void **, ino_t);
int write_inodes_block(GLBVAL *, char *, ino_t);
int open_disk(const char *);
int read_cgblock(GLBVAL *, struct cg **, int);
int read_cgblock_ft(GLBVAL *, struct cg **, int) ;
int write_cgblock(GLBVAL *);

#endif
